<template>
   <table class="my-table">
      <thead>
        
        <tr>
          <slot name ='header'></slot>
        </tr>
      </thead>
      <tbody>
        <tr v-for="item in goods" :key="item.id">
         <slot name="content" :item ='item'></slot>
        </tr>
        
      </tbody>
    </table>
</template>

<script>
export default {
  name: 'VueDemoMyTable',
  props: {
    goods: {
      type:Array,
      required :true
    }
  },
  data() {
    return {
      
    };
  },

  mounted() {
    
  },

  methods: {
    
  },
};
</script>

<style lang="scss" scoped>

</style>